package com.example.onewebonedatabase.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.onewebonedatabase.entity.Order;
import com.example.onewebonedatabase.repository.OrderRepository;
import com.example.onewebonedatabase.service.OrderService;

/**
 * @author jiangwz
 * @create 2019/7/1.
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    OrderRepository orderRepository;

    @Override
    public void save(Order order) {
        orderRepository.save(order);
    }

    @Override
    public void deleteAll() {
        orderRepository.deleteAll();
    }
}
